#coding:utf-8


import unittest
from selenium import webdriver

class Test1(unittest.TestCase):

    @classmethod
    def setUpClass(self):
        print("execute setUpClass")
        driver = webdriver.Firefox()

    @classmethod
    def tearDownClass(self,driver):
        print("execute tearDownClass")
        driver.close()

    def setUp(self):
        print("execute setUp")
        #登录



    def tearDown(self):
        print("execute tearDown")
        #退出


    def test_one(self):
        print('execute test_one')
        self.assertTrue('FOO'.isupper())
        #执行条件
        #具体操作
        #断言

    def test_two(self):
        print('execute test_two')


if __name__ == '__main__':
    unittest.main()